<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>

<%@ include file="/core/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<%@ include file="/core/adminMeta.jsp"%>
		 
		<!--框架必需end-->
		 
		<script type="text/javascript">
			 
			   
			function loginNameChange(){
				
				var loginName=$("#loginName").val(); 	
				 
				$.getJSON("<%=basePath%>/admin/member/ajaxGetMemberListByName.shtml",{loginName: loginName},function(result){	 
					//填入新值
					//alert(result.rows);
					 
					$.each(result.rows, function(i,f){
					 	 
						$(".test111").append("<tr><td>"+f.loginName+"</td><td>"+f.personName+"</td><td>"+f.recommendNum+"</td></tr>");
						
						
					});
						
				 
					 
					
					 
				});
				 
				
			}
		</script> 
		
		<!-- 遮罩效果 -->
		 
		<!-- 遮罩效果结束 -->
	</head>

	<body>
		<div id="scrollContent">

			<div class="box2" panelTitle="注册会员" roller="true">
				<div id="box"></div>
				<form id="commitForm" action="admin/member/memberAdd.shtml" method="post" onsubmit="return check()">
						<jodd:form scopes="request" beans="member">
						<table class="tableStyle"  >
							<tr>
								<th colspan="4" align="center">会员注册信息</th>
							</tr>					
												
							<tr>
								<td align="right" width="20%">
									会员编号：
								</td>
								<td align="left"  width="30%">
									<input type="text"  id="loginName" name="loginName"  onchange="loginNameChange()" />
									<span id="loginNamePersonName"></span> 
								</td>
								 
							   
							</tr>
							
							 
												 
									
						</table>
				 		 
						</jodd:form>
				</form>
				
				<table class="tableStyle test111">
					<tr align="center">
						
						<th>账号</th>
						<th>姓名</th>
						<th>直推人数</th>
						 
					</tr>
 					 
				</table>
			

			</div>
		</div>
		<!--代码高亮end-->
	</body>
</html>